<%-- 
    Document   : header
    Created on : Feb 20, 2013, 11:21:58 PM
    Author     : onur
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<div class="sayfa-navbar">
    <div class="navbar navbar-fixed-top navbar-inverse">
        <div class="navbar-inner">
            <div class="nav-wrapper">
                <div class="nav-logo">
                    <a href="#" class="brand">
                        The Mycases
                    </a>
                </div>
                
                    <c:choose>
                        <c:when test="${param.logged ne 'yes'}">
                            <div class="nav-nav pull-right">
                            <ul class="nav">
                                <c:if test="${param.search eq 'yes'}" >
                                    <li class="speech-handler">
                                        <a href="#">Arama</a>                                    
                                        <div class="speech-arrow">

                                        </div>
                                        <div class="speech-bubble">
                                            <form class="form-inline" action="${pageContext.request.contextPath}/search" method="get">
                                                <input name="search_text" name="text" type="text" class="input-xxlarge" placeholder="Aranacak şey">
                                                <input type="submit" class="btn btn-ara pull-right btn-primary" value="Ara">
                                            </form>
                                        </div>                                    
                                    </li>
                                </c:if>
                            </ul>
                            <form class="navbar-form pull-right" action="${pageContext.request.contextPath}/sign/login" method="post">
                                <input id="txtName" class="span2" type="text" name="userName" placeholder="Email">
                                <input id="txtPassw" class="span2" type="password" name="password" placeholder="Password">

                                <button id="btnSubmit" type="button" class="btn">Giriş Yap</button>
                            </form>
                                
                            </div>
                                
                        </c:when>
                        <c:when test="${param.logged eq 'yes'}">
                            
                            <div class="nav-nav pull-right">
                            <div class="pull-left search-area">
                                <form class="navbar-form" action="${pageContext.request.contextPath}/search" method="get">
                                    <input type="text" name="content" class="pull-left" placeholder="Aramak istediğiniz şey ?">
                                    <a href="#"><i class="icon-search"></i></a>
                                </form>
                            </div>
                            <ul class="nav dropdown">
                                <li class="${param.mode=='home'?'active':''}"><a href="#">Home</a></li>
                                <li class="${param.mode=='messages'?'active':''}"><a href="#">Mesajlar</a></li>
                                <li class="${param.mode=='follwings'?'active':''}"><a href="#">Takip</a></li>
                                <li class="${param.mode=='profile'?'active':''} container-elem">
                                    <a class="dropdown-toggle">Profil
                                        <b class="caret"></b>                                        
                                    </a>
                                    <ul class="dropdown-menu">
                                            <li><a href="#">Profili Göster</a></li>
                                            <li><a href="#">Profili Düzenle</a></li>
                                            <li class="divider"></li>
                                            <li><a href="#">Case'lerim</a></li>
                                            <li><a href="#">Tavsiyelerim</a></li>
                                    </ul>
                                </li>                                
                            </ul>
                            <h6 class="pull-right">Onur Karacalı</h6>
                            </div>
                        </c:when>
                    </c:choose>
                            
                    
                
            </div>

        </div>
            
    </div>
</div>
<!--
<div class="msgbox-bg">
</div>
<div class="msgbox-wrap err-msg">
    <div class="header">
        Mesaj Başlığı
        <button class="msgbox-close btn btn-danger" type="button">&times;</button>
    </div>
    <div>
        aslkdajsdjaskdnjkasdjasjdjaasdasdasdasdasdasdasdhahjdfkhasdfahdfkhjfabsdfhds <br/>
        aksdajsdjkasdasd<br/>
    </div>
</div>
-->